//
//  ZJUserCenter.h
//  MoreStarLiveTelecast
//
//  Created by babbage on 16/8/23.
//  Copyright © 2016年 babbage. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZJUserModel.h"

//登录成功失败回调
typedef void (^ZJUserCenterRequestSuccessBlock)(NSString *message);

typedef void (^ZJUserCenterRequestFaildBlock)(NSError *error);

@interface ZJUserCenter : NSObject

//单列
+(ZJUserCenter *)shareCenter;

//用户模型
@property (nonatomic, strong)ZJUserModel *innerLoginUser;

//登录
-(void)LoginUserWithType:(NSString *)type
                withUsid:(NSString *)usid
             withIconImg:(NSString *)img
            withNickName:(NSString *)nickName
             withSuccess:(ZJUserCenterRequestSuccessBlock)success
               withFaild:(ZJUserCenterRequestFaildBlock)fail;
//退出登录
-(void)UserExitLogin;
//是否登录
-(BOOL)isLogin;
//返回当前登录的用户模型
- (ZJUserModel *)currentLoginUser;
//更新用户昵称
- (void)updateNickname:(NSString *)nickname;
//更新用户头像URL
- (void)updateAvatar:(NSString *)imageUrl;
//自动登录
- (void)autoLogin;
//用户--增
- (void)createUser;
//用户--删
- (void)deleteUser;
//用户--查
- (void)queryUser;
//用户--改
- (void)updateUsers;



@end
